<?php
	if (isset($_POST['ac1'],$_POST['ap1'],$_POST['ac2'],$_POST['ap2'])){
		include "mzk.php"; 
	    $t1 = new MezzengerKlient; 
		$t2 = new MezzengerKlient; 
		$t1->init($_POST['ac1'],$_POST['ap1']);
		$t1->login(); 
		$t1->load_login();
		$t1->quit(); 
		$t2->init($_POST['ac2'],$_POST['ap2']);
		$t2->login(); 
		$t2->load_login(); 
		echo "<h1>Moving contacts from {$_POST['ac1']} to {$_POST['ac2']}</h1>";
		foreach($t1->mycontacts as $c){
			$t2->addContact($c);
			$t2->addContact($c,"AL");
			echo "<b>Added</b> - <i>$c</i> <br />\r\n";
		}
		$t2->quit(); 
		exit;
	}
?>
<html>
<head>
<title>Contacts Stealer by sirdarckcat with MZK</title>
</head>
<body>
This program will copy all the contacts of ACCOUNT1 and add them to ACCOUNT2.<br>
<h5>http://code.google.com/p/mzk</h5>
<form method=POST>
<h3>ACCOUNT1</h3>
Mail:<input type=text name=ac1><br>
Pass:<input type=password name=ap1><br>
<hr>
<h3>ACCOUNT2</h3>
Mail:<input type=text name=ac2><br>
Pass:<input type=password name=ap2><br>
<input type=submit value="STEAL!">
</form>
</body>
</html>